package com.aiit.carinsurance2.service.impl;

import com.aiit.carinsurance2.dao.ToubaodanDao;
import com.aiit.carinsurance2.pojo.*;
import com.aiit.carinsurance2.service.ToubaodanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToubaodanServiceImpl implements ToubaodanService {
    @Autowired
    private ToubaodanDao toubaodanDao;

    @Override
    public List<Insured> querybuid(Integer uid) {
        return toubaodanDao.querybuid(uid);
    }

    @Override
    public List<Car> querycarid(Integer uid) {
        return toubaodanDao.querycarid(uid);
    }

    @Override
    public List<Userinsurancepay> queryallpay(Integer uid) {
        return toubaodanDao.queryallpay(uid);
    }

    @Override
    public int inserts(Toubaodan toubaodan) {
        return toubaodanDao.inserts(toubaodan);
    }

    @Override
    public List<Toubaodan> query(String states) {
        return toubaodanDao.query(states);
    }

    @Override
    public List<Toubaodaninfo> queryinfo(String states) {
        return toubaodanDao.queryinfo(states);
    }

    @Override
    public Toubaodan querybyid(String id) {
        return toubaodanDao.querybyid(id);
    }

    @Override
    public int update(Toubaodan toubaodan) {
        return toubaodanDao.update(toubaodan);
    }

    @Override
    public Toubaodaninfo querytoubaodaninfo(int id) {
        return toubaodanDao.querytoubaodaninfo(id);
    }

    @Override
    public int updateinfo(String states, String bec, int id) {
        return toubaodanDao.updateinfo(states,bec,id);
    }

    @Override
    public Toubaodaninfo queryinfobyuid(Integer uid) {
        return toubaodanDao.queryinfobyuid(uid);
    }

    @Override
    public Toubaodan querybyuid(Integer uid) {
        return toubaodanDao.querybyuid(uid);
    }
}